<template>
<div>
  <h2>我是App组件</h2>
  <p>{{num | SplitNumComma}}</p>
  <Count></Count>
</div>
</template>

<script>
import Count from "@/components/Count";
export default {
    name:"App",
    components:{
      Count,
    },
  data(){
      return{
        num:1352313213,
      }
  },
  filters:{
      SplitNumComma(value){
        const reg = /(\d)(?=(\d{3})+$)/g
        return String(value).replace(reg,"$1,")
      }
  }

}
</script>